/* 
 * File:   TestQuestion.cpp
 * Author: user
 * 
 * Created on July 27, 2014, 12:58 PM
 */

#include <iostream>
#include "TestQuestion.h"

TestQuestion::TestQuestion() {
}

TestQuestion::TestQuestion(string question, vector<string> selections, string ans)
{
    _question = question;

    for(int i=0; i< selections.size();i++)
        _selections.push_back(selections[i]);

    _answer = ans;
}


TestQuestion::TestQuestion(const TestQuestion& orig) 
{
    this->_question = orig._question;
    this->_selections = orig._selections;
    this->_ID = orig._ID;
    this->_answer = orig._answer; 
}

TestQuestion::~TestQuestion() 
{
}

int TestQuestion::getID() const
{
    return _ID;
}

string TestQuestion::getQuestion() const
{
    return _question;
}

vector<string> TestQuestion::getSelections() const
{
    return _selections;
}

string TestQuestion::getAns() const 
{
    return _answer;
}

void TestQuestion::setID(int id)
{
    _ID = id;
}

void TestQuestion::setQuestion(const string question)
{
    _question = question;
}

void  TestQuestion::setSelections(const vector<string> selections)
{
    for(int i=0; i< selections.size();i++)
        _selections.push_back(selections[i]);
}

void TestQuestion::setAns(const string answer)
{
    _answer = answer;
}

